home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / cm100exe.zip / CM100EXE.EXE / SAMPLES / COPY / MAKEFILE next >
Text File  |  1991-11-16  |  2KB  |  77 lines

  1. /*****************************************************************************
  2. *                              MAKEFILE
  3. *
  4. *  PURPOSE: Copy some files.
  5. *
  6. *  NOTE: None of the comments in this make file are required.  They have
  7. *        been provided to help you understand how CMAKE handles each
  8. *        command.  In other words, this make file could be reduced down to
  9. *        the following four commands:
  10. *
  11. *        copy src\1.src trg\1.trg
  12. *        copy src\more\3.src trg
  13. *        copy src trg\12.trg
  14. *        copy src trg
  15. *
  16. *****************************************************************************/
  17.  
  18. /*****************************************************************************
  19. *                         COPY FILE TO FILE
  20. *
  21. *  The following COPY command will be executed only when one of the
  22. *  following conditions is true:
  23. *
  24. *  1. "trg\1.trg" does not exist.
  25. *  2. "src\1.src" is newer than "trg\1.trg".
  26. *
  27. *****************************************************************************/
  28.  
  29. copy src\1.src trg\1.trg
  30.  
  31. /*****************************************************************************
  32. *                      COPY FILE TO DIRECTORY
  33. *
  34. *  The following COPY command will be executed only when one of the
  35. *  following conditions is true:
  36. *
  37. *  1. "trg\3.src" does not exist.
  38. *  2. "src\more\3.src" is newer than "trg\3.src".
  39. *
  40. *****************************************************************************/
  41.  
  42. copy src\more\3.src trg
  43.  
  44. /*****************************************************************************
  45. *                       COPY DIRECTORY TO FILE
  46. *
  47. *  The following COPY command will always be executed.
  48. *
  49. *****************************************************************************/
  50.  
  51. copy src trg\12.trg
  52.  
  53. /*****************************************************************************
  54. *                     COPY DIRECTORY TO DIRECTORY
  55. *
  56. *  The COPY command:
  57. *
  58. *       copy src\1.src trg\1.src
  59. *
  60. *  will be executed only when one of the following conditions is true:
  61. *
  62. *       1. "trg\1.src" does not exist.
  63. *       2. "src\1.src" is newer than "trg\1.src".
  64. *
  65. *  The COPY command:
  66. *
  67. *       copy src\2.src trg\2.src
  68. *
  69. *  will be executed only when one of the following conditions is true:
  70. *
  71. *       1. "trg\2.src" does not exist.
  72. *       2. "src\2.src" is newer than "trg\2.src".
  73. *
  74. *****************************************************************************/
  75.  
  76. copy src trg
  77.